<?php
namespace app\index\model;
use think\Model;
use app\index\model\Img;
	class Nr extends Model
	{
		protected $connection='db';
		public function view($name){
			$img=new Img();
			$id=$img->where(array("imgName"=>$name))->field("imgID")->find();
			$data['text']=$this->field("imgNr")->where(array("imgID"=>$id['imgID']))->select();
			return \json($data);
		}
	}